package com.mycompany.repositories;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;


import com.mycompany.model.User;

public interface UserRepository extends JpaRepository<User, Long>,QueryDslPredicateExecutor<User> {
	
	User findByEmail (String email);
	
	Page<User> findByCognome(String lastname, Pageable pageable);

//	User testQuesryAnnotation(String nome);
}
